package com.wjy.game.message.data.req;

import com.wjy.game.enums.Operate;
import com.wjy.game.message.ReqMessageData;

import lombok.Data;

/**
 * @author wjy
 * @date 2025/5/19 17:49
 * @description 加入房间
 */
@Data
public class JoinRoomReq implements ReqMessageData {

    private String roomId;

    /**
     * 棋手信息
     */
    private String playerId;

    private String playerName;

    @Override
    public String identify() {
        return playerId;
    }

    @Override
    public Operate operate() {
        return Operate.JOIN_ROOM;
    }
}
